/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package SearchEngineQuery;

/**
 *
 * @author Chris
 */
public class SearchResult {
    private String summary;
    private String url;

    public SearchResult() {
        summary = null;
        url = null;
    }

    public SearchResult(String url, String summary) {
        this.url = url;
        this.summary = summary;
    }

    /**
     * @return the summary
     */
    public String getSummary() {
        return summary;
    }

    /**
     * @param summary the summary to set
     */
    public void setSummary(String summary) {
        this.summary = summary;
    }

    /**
     * @return the url
     */
    public String getUrl() {
        return url;
    }

    /**
     * @param url the url to set
     */
    public void setUrl(String url) {
        this.url = url;
    }

    public String toString() {
        return url + "\n" + summary;
    }
}
